<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="//www.layuicdn.com/layui/css/layui.css" />
    <title>免费注册</title>
    <link rel="stylesheet" th:href="@{../../../../static/css/travelPage/travelRegist.css}">
</head>
<body>
<div th:include="travel/travelInclude.html"></div>

<form class="layui-form" th:action="@{http://localhost:80/user/regist}" method="post">
<div class="layui-fluid">
    <div class="layui-row">
<div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" id="userName"name="userName" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
        </div>
    </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-block">
                <input type="password"id="password" name="password" required  lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">确认密码</label>
            <div class="layui-input-block">
                <input type="password" id="confirmPassword" name="confirmPassword" required  lay-verify="required" placeholder="请确认密码" autocomplete="off" class="layui-input">
            </div>
        </div>
<div class="layui-form-item">
    <label class="layui-form-label">手机号</label>
    <div class="layui-input-block">
        <input type="text" id="phoneNumber" name="phoneNumber" required  lay-verify="required" placeholder="请输入手机号" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">邮箱</label>
    <div class="layui-input-block">
        <input type="text" id="email" name="email" required  lay-verify="required" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
    </div>
</div>
        <div class="layui-form-item">
            <label class="layui-form-label">验证码</label>
            <div class="layui-input-block">
                <input type="text" id="verificationCode" name="verificationCode" required  lay-verify="required" placeholder="请输入验证码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <button type="button" id="a_email" class="layui-btn layui-btn-radius layui-btn-normal">发送验证码</button>
<div class="layui-form-item">
    <label class="layui-form-label">密保问题</label>
    <div class="layui-input-block">
        <input type="text" id="encryptedProblem" name="encryptedProblem" required  lay-verify="required" placeholder="请输入密保问题" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">密保答案</label>
    <div class="layui-input-block">
        <input type="text" id="encryptedAnswer" name="encryptedAnswer" required  lay-verify="required" placeholder="请输入密保答案" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">用户类别</label>
    <div class="layui-input-block">
        <input type="text" id="userType" name="userType" required  lay-verify="required" placeholder="请输入用户类别" autocomplete="off" class="layui-input">
    </div>
</div>
        <button type="submit"  class="layui-btn layui-btn-radius layui-btn-normal">注册</button>
    </div>
</div>
</form>

<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script th:src="@{../../../../static/js/travelPage/travelRegist.js}"></script>
<script>
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>


</body>
</html>